package com.nhim.cms.admin.client.dashboards;

import com.google.gwt.activity.shared.Activity;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import com.nhim.cms.admin.client.place.ContentManagementPlace;
import com.nhim.cms.admin.shared.NhimCMSAdminRequestFactory;

public class ContentManagement extends Composite implements Activity {

	private static ContentManagementUiBinder uiBinder = GWT
			.create(ContentManagementUiBinder.class);

	interface ContentManagementUiBinder extends
			UiBinder<Widget, ContentManagement> {
	}

	public ContentManagement(NhimCMSAdminRequestFactory requestFactory) {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@Override
	public String mayStop() {
		return null;
	}

	@Override
	public void onCancel() {

		
	}

	@Override
	public void onStop() {
		
	}

	@Override
	public void start(AcceptsOneWidget panel, EventBus event) {
		panel.setWidget(this);
		
	}

	public void updateForPlace(ContentManagementPlace place) {
		Window.alert(place.getToken());
	}

	

}
